package com.akaovi.pojo;

/**
 * @author akaovi
 * @version 1.0
 * @description
 * @date 2022/11/7 14:13
 * @since 2022/11/7 14:13
 */
public class SalesEmployee extends Employee {
    private double sales;
    private double pre;

    public SalesEmployee() {
    }

    public SalesEmployee(String name, int birth, double sales, double pre) {
        super(name, birth);
        this.sales = sales;
        this.pre = pre;
    }

    public double getSales() {
        return sales;
    }

    public void setSales(double sales) {
        this.sales = sales;
    }

    public double getPre() {
        return pre;
    }

    public void setPre(double pre) {
        this.pre = pre;
    }

    public double getSalary(int month) {
        return sales * pre + super.getSalary(month);
    }
}
